Skip to content

feat(libressl3): implement EVP_PKEY_bits - #14409

Merged
oneandonlydean merged 6 commits into
boykopovar:mainfrom
DonRyuzaki:feat/libressl3-pkey-bits
Nov 6, 2026
Merged

oneandonlydean merged 6 commits into
boykopovar:mainfrom
DonRyuzaki:feat/libressl3-pkey-bits

Conversation

@DonRyuzaki

@DonRyuzaki DonRyuzaki commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor

What

Resubmission of #13941 after the author's PR allowance increased. The original was automatically closed for the earlier PR limit and remains closed; this PR supersedes it.

Implement EVP_PKEY_bits in the existing libSceLibreSsl3 library, replacing its throwing unknown-signature placeholder with int (const LibreSsl3EvpPkey*). Null keys, methods and callbacks return zero; otherwise dispatch through the method's pkey_bits callback with the original key and preserve its result.

The contract follows LibreSSL 4.0.0 p_lib.c. The existing key model places the method at offset 8; the callback at offset 104 follows that revision's LP64 evp_local.h. Record the unverified console ABI and constructor interoperability in the library's technical debt. This adds one function to an existing library and no third-party dependency.

Add a registered regression test covering null paths, the neighboring callback slot, original argument forwarding, exact callback count, signed return values, unchanged input objects and replacement/removal of the callback. The existing key-reference test also runs this coverage by default.

Tested

Windows x86-64, WinLibs GCC 15.2 DWARF, Release with bundled dependencies and BUILD_TESTING=ON. Tested local commit a99b4c27f90c32076d79d573fc20a15b820b6576, based on upstream ba627802e2210187d417deb64c8f2fed8e33011f. Published aa4fc310feb23ba86c31d0ce1c5786c8543692a0 has exactly the tested tree 6777f6e55ad6f9a63d1107b890b7f84e0ed1f4af.

Console ABI and native key-constructor interoperability remain unverified and are recorded in the library's technical debt. Coverage uses caller-owned keys/methods. Validation here is Windows-only and focused; no entire-CTest-suite or title-compatibility claim.

Documentation follow-up (November 2, 2026): explicitly state that the console module's LibreSSL revision is unknown and that callback offset 104 assumes LibreSSL 4.0.0's LP64 EVP_PKEY_ASN1_METHOD layout. This follow-up changes only the debt entry; all code/build inputs are identical to the previously tested tree above. Re-ran the 399-library / 26,227-export public-header audit and the same six previously built runtime regressions: all passed. Current-main conventions and whitespace checks passed. This is not a new full-runtime build or console ABI verification.

Published follow-up 2573684d24be67e6b0dde001c01a1d5a43fa24cb has exactly the validated local tree ec185ba24382c808aa99c0286a941c5d16303898 (local source 89a4e19f48a30d9315ebeb8908396ba0d223a239).

Current-main refresh (November 5, 2026): rebased the unchanged feature onto upstream main e772fb25cc72ee5faf77847f06bbc69533016e82. Published head c8541e6841e3326d7f7b420ad3282b11d5473a3f has tree c8333a93c071393d79311f4ae29cd336ec4831a7; the worktree was clean. An isolated native Windows Release configuration succeeded using WinLibs GCC 15.2 and the pinned FFmpeg package. The guest_libressl3_key_reference_tests target built successfully (352 Ninja steps, two below-normal compiler jobs). Focused CTests guest_libressl3_pkey_bits and guest_libressl3_key_reference each passed three consecutive runs, with no skips. Current-main conventions and whitespace checks passed. This refresh did not repeat the full libs/relinker build, public-header audit, entire CTest suite, console ABI check, or game test; the earlier full-build evidence above applies to the older tree. The old hosted Windows job was cancelled at its 45-minute limit during guest-test compilation, before a test verdict. The refreshed head triggered a new Build run, initially queued. The local pr_overlap.py could not run because gh is unavailable here; a live GitHub PR search found no other open PR claiming EVP_PKEY_bits, but did not prove whole-repository line-overlap freedom.

Current-main merge (November 6, 2026): merged upstream main through c28413dda903edcfe7fe9d544abe1b7786cb0e31 into the existing branch. Published head 533a4fe645f1419a55a55d8c77cf2fb73c409207 has tree 5777d5ff7774734274822985c99518be61ab7998 and a clean working tree. The feature diff against this main is six files. Conflict resolution keeps the upstream Retain_nid_no_patch helper and ssl_ctx test case, retains the EVP_PKEY_bits implementation and test, and retains the upstream parent-forwarding count of 391. The initial pending-export count was corrected in the November 6 follow-up below.

On native Windows x64, Release CMake configuration and the guest_libressl3_key_reference_tests target build passed with GCC 15.2 and two below-normal compiler jobs. The registered guest_libressl3_pkey_bits and guest_libressl3_key_reference tests each passed three consecutive executions (2 tests, 0 failures/skips). git diff --check origin/main HEAD passed. check_conventions.py --base origin/main --head HEAD completed with 0 errors and one debt-entry length warning on that intermediate tree. This merge did not rerun the full libs/relinker build, whole CTest suite, public-header audit, console ABI check, or game test. The November 5 refreshed head's Build run later succeeded; fresh hosted checks for this merge are separate.

Latest-main merge and review correction (November 6, 2026): merged upstream main through e509b292479c383dabd18bf5c323eff1afe9d2f3 and published head b85b547dcf8bd1695c540de83fd66e3e7add2b58 (tree 3db5b072f0db35524f9a08b8badbfffe20aa8a80). The worktree is clean and the feature diff remains six files, with 83 additions and 7 deletions. This merge retains upstream native PKEY lifecycle changes and its 387 parent export forwarders without changing the EVP_PKEY_bits implementation. Dean's count review was verified against the source: Export.cpp has 46 throwing exports, while AdditionalExports.cpp has 164 remaining callable exports (154 named and 10 NID-only). The debt document now records those counts on the corresponding lines.

On native Windows x64, the Release guest_libressl3_key_reference_tests target rebuilt successfully with GCC 15.2 (217 Ninja steps; two below-normal compiler jobs). The registered guest_libressl3_pkey_bits and guest_libressl3_key_reference tests each passed three consecutive runs, with no failures or skips. On the final documentation-only follow-up, check_conventions.py --base origin/main --head HEAD passed with no findings, and git diff --check origin/main HEAD passed. The focused executable did not need rebuilding after the documentation-only correction. This update did not repeat the full libs/relinker build, whole CTest suite, console ABI check, or game test; hosted checks for this head are new and pending. Maintainer edits were enabled for this PR on November 6 at the author's request.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes

@github-actions

github-actions Bot commented Nov 1, 2026 •

Copy link
Copy Markdown

Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.

Pull request Conflicting files (lines on main) Same exports Same new files
PR 12315 docs/dev/debt/libSceLibreSsl3.md L20
PR 14366 docs/dev/debt/libSceLibreSsl3.md L19-20, L29
PR 14483 docs/dev/debt/libSceLibreSsl3.md L29
PR 14499 core/libs/tests/GuestLibreSsl3KeyReference.cpp L88
docs/dev/debt/libSceLibreSsl3.md L29
PR 14612 docs/dev/debt/libSceLibreSsl3.md L29
PR 14889 docs/dev/debt/libSceLibreSsl3.md L29
PR 14890 docs/dev/debt/libSceLibreSsl3.md L29
PR 14992 docs/dev/debt/libSceLibreSsl3.md L29
PR 15031 docs/dev/debt/libSceLibreSsl3.md L29
PR 15045 docs/dev/debt/libSceLibreSsl3.md L29

Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.

Pull request Shared files not compared
PR 10452 core/libs/prx/libSceLibreSsl3/CMakeLists.txt
core/libs/prx/libSceLibreSsl3/include/Api.hpp
docs/dev/debt/libSceLibreSsl3.md
PR 10461 core/libs/prx/libSceLibreSsl3/CMakeLists.txt
core/libs/prx/libSceLibreSsl3/include/Api.hpp
docs/dev/debt/libSceLibreSsl3.md
PR 10490 core/libs/prx/libSceLibreSsl3/CMakeLists.txt
core/libs/prx/libSceLibreSsl3/include/Api.hpp
docs/dev/debt/libSceLibreSsl3.md
PR 10491 core/libs/prx/libSceLibreSsl3/CMakeLists.txt
core/libs/prx/libSceLibreSsl3/include/Api.hpp
docs/dev/debt/libSceLibreSsl3.md
PR 10493 core/libs/prx/libSceLibreSsl3/CMakeLists.txt
core/libs/prx/libSceLibreSsl3/include/Api.hpp
docs/dev/debt/libSceLibreSsl3.md
PR 10631 core/libs/prx/libSceLibreSsl3/CMakeLists.txt
core/libs/prx/libSceLibreSsl3/include/Api.hpp
docs/dev/debt/libSceLibreSsl3.md
PR 10960 core/libs/prx/libSceLibreSsl3/CMakeLists.txt
core/libs/prx/libSceLibreSsl3/include/Api.hpp
docs/dev/debt/libSceLibreSsl3.md
PR 11146 core/libs/prx/libSceLibreSsl3/CMakeLists.txt
core/libs/tests/GuestLibreSsl3KeyReference.cpp
docs/dev/debt/libSceLibreSsl3.md
PR 12754 core/libs/prx/libSceLibreSsl3/CMakeLists.txt
core/libs/prx/libSceLibreSsl3/include/Api.hpp
core/libs/prx/libSceLibreSsl3/src/Key.cpp
core/libs/tests/GuestLibreSsl3KeyReference.cpp
docs/dev/debt/libSceLibreSsl3.md
PR 12945 core/libs/prx/libSceLibreSsl3/CMakeLists.txt
core/libs/prx/libSceLibreSsl3/include/Api.hpp
core/libs/prx/libSceLibreSsl3/src/Key.cpp
core/libs/tests/GuestLibreSsl3KeyReference.cpp
docs/dev/debt/libSceLibreSsl3.md
PR 14212 docs/dev/debt/libSceLibreSsl3.md

@github-actions

github-actions Bot commented Nov 1, 2026 •

Copy link
Copy Markdown

Progress report (e509b29 → b85b547)

📈 System libraries: 28.94% (+0.0026%, +1 implemented functions)

✅ 1 implemented
Library Name
libSceLibreSsl3 EVP_PKEY_bits_nid_postfix

Changed libraries (implemented exports)

Library Before After Change
libSceLibreSsl3 61/284 (21.48%) 62/284 (21.83%) +0.35%

@MarcZX10 MarcZX10 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed — no blocking findings

The EVP_PKEY_bits export dispatches through the method's pkey_bits slot and returns zero for null keys, methods and callbacks, as the PR says; the slot offset 104 is correct for the LibreSSL 4.0.0 layout the PR cites, but whether the console's library follows that layout is not known here, and the repository does not record it.

What I ran

  • Exact head aa4fc310feb23ba86c31d0ce1c5786c8543692a0, base ba627802e2210187d417deb64c8f2fed8e33011f.
  • Environment: Linux, /usr/bin/python3 3.11.2, no build.
  • Precheck: python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 14409 --output-dir /dev/shm/reviewer-run/precheck/14409
  • ABI audit by hand (helper absent from the head tree): python3 tools/pr_abi_audit.py --repo /marc/AnyPS5 --base ba627802e2210187d417deb64c8f2fed8e33011f --head aa4fc310feb23ba86c31d0ce1c5786c8543692a0 --json (exit 0; passed; 0 findings; 270 symbols).
  • Test-quality helper on core/libs/tests/GuestLibreSsl3KeyReference.cpp from a head extract: one literal-path registration heuristic.
  • Offset check: the LibreSSL 4.0.0 structure evp_pkey_asn1_method_st in src/lib/libcrypto/evp/evp_local.h at ce488b78e0bd994780569df718596b9776ff681a (fetched with gh api). Counting LP64 offsets: base_method 0, pkey_id 8, pkey_flags 16, pem_str 24, info 32, the six pub/priv callbacks 40 to 80, pkey_size 96, pkey_bits 104. The value 104 matches.

Results

Precheck report, checks table, unedited (/dev/shm/reviewer-run/precheck/14409/report.md):

Check Status Command / reason
build_and_compile not_applicable The precheck deliberately does not configure, build, or compile AnyPS5.
diff_check passed git diff --check ba627802e2210187d417deb64c8f2fed8e33011f...aa4fc310feb23ba86c31d0ce1c5786c8543692a0
conventions_and_pr_template passed /usr/bin/python3 tools/check_conventions.py --base ba627802e2210187d417deb64c8f2fed8e33011f --head aa4fc310feb23ba86c31d0ce1c5786c8543692a0 --title feat(libressl3): implement EVP_PKEY_bits --body /dev/shm/reviewer-run/precheck/14409/pr-body.md
changed_export_abi_audit failed /usr/bin/python3 tools/pr_abi_audit.py --base ba627802e2210187d417deb64c8f2fed8e33011f --head aa4fc310feb23ba86c31d0ce1c5786c8543692a0 --json
python_syntax not_applicable No changed Python implementation files.
related_python_unit_tests not_applicable No changed tools/ module has an existing sibling tools/tests/test_<module>.py suite.
python_test_registration not_applicable No changed test_*.py files.
live_dependency_and_mergeability_check passed /usr/bin/python3 /marc/AnyPS5/tools/pr_stack_check.py 14409 --repo boykopovar/AnyPS5 --output-dir /dev/shm/reviewer-run/precheck/14409/stack
build_dependent_cpp_tests not_applicable Not run: C++ tests need exact-head binaries, which require a build; the precheck does not build.
test_quality_heuristics failed /usr/bin/python3 /dev/shm/reviewer-run/precheck/14409/head-aa4fc310feb2-1a9f74f7/tools/pr_test_quality.py --root /dev/shm/reviewer-run/precheck/14409/head-aa4fc310feb2-1a9f74f7 --json core/libs/prx/libSceLibreSsl3/AdditionalExports.cpp core/libs/prx/libSceLibreSsl3/CMakeLists.txt core/libs/prx/libSceLibreSsl3/include/Api.hpp core/libs/prx/libSceLibreSsl3/src/Key.cpp core/libs/tests/GuestLibreSsl3KeyReference.cpp docs/dev/debt/libSceLibreSsl3.md
negative_controls not_applicable No changed Python test module in tools/ can be run as a no-build base-source control.

Negative control

Not run here. The guest test is C++ and needs a build. The test writes a neighbouring method slot at 96 and checks that dispatch picks the slot at 104, which tests the code's constant, not the console's layout.

Findings

Blocking: none.

Non-blocking:

  • The offset is the 4.0.0 layout. In the 4.0.0 struct a base_method pointer replaces the 3.x pkey_base_id field, which is why the slot moves. I believe a 3.x layout would put pkey_bits at 96, but I did not fetch a 3.x header here, so that is an inference. The library's technical-debt entry says "no console ABI or behavior verification" and cites 4.0.0; it should also state the revision the libSceLibreSsl3 export is assumed to follow, and that the offset depends on it.
  • The method-slot read has no bounds check against the method object's size. That is the same trust the existing key model places in caller-owned methods (PR body: "Coverage uses caller-owned keys/methods").

Sources

Not verified

  • The LibreSSL revision the console's libSceLibreSsl3 follows; the 3.x layout was not fetched.
  • The C++ test was not built or run here.
  • Hosted: at this head conventions, eligibility, intake, labels and library-portability succeeded; linux, register-context, relinker, relinker-asan and write-watch were skipped.

@CnRJay CnRJay left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Withdrawn. This review applied a title-ID/log requirement that is not in CONTRIBUTING (Unblocks: none is allowed), and it contained no code review.

@DonRyuzaki

Copy link
Copy Markdown
Contributor Author

The Windows job exceeded its 45-minute limit while compiling guest tests, before a test verdict. Could a maintainer rerun it? https://github.com/boykopovar/AnyPS5/actions/runs/41436303787/job/125252365322 . The author UI has no rerun control, and the GitHub connector returns 403.

@DonRyuzaki
DonRyuzaki requested a review from MarcZX10 November 4, 2026 21:54
@TechLevelZero

Copy link
Copy Markdown
Contributor

✅ AMD GPU test: passed

PR head 2573684 merged onto main b611e63 · tested 2026-11-04 22:16 UTC · 17 min

GPU AMD Radeon RX 6300 (RADV NAVI24), driver Mesa 25.2.8-0ubuntu0.24.04.4, Vulkan 1.4.318
Host Ubuntu 26.04.1 LTS, kernel 7.0.0-42-generic, container ubuntu:24.04
Logs build and test logs for this run
Build ✅ passed (Release, -DANYPS5_ENABLE_SPIRV_TOOLS=ON)
Tests ✅ 1,172 passed · 6 failed (0 new, 5 also fail on main, 1 unstable on main) · 7 skipped (ANYPS5_REQUIRE_VULKAN=1)
Test setup CPU-only tests without a GPU; GPU tests (and any CPU-only test that failed or skipped without one) once on the GPU with VK_LAYER_KHRONOS_validation and ANYPS5_NO_SHADER_CACHE=1; main ran the same way
Test selection 1,185 of 3,946 tests run: the ones this change can reach, chosen by tools/select_tests.py from main's build graph
Vulkan validation ✅ no new validation IDs vs main (573 tests run on the GPU)
Slow tests (>30 s, GPU tests timed with validation layers) ⚠️ agc_driver_pipeline_journal 120.1 s, ⚠️ public_headers 62.4 s, ⚠️ agc_driver_image_sample_unnormalized 51.3 s, ⚠️ agc_driver_lazy_resolved_abi 47.8 s, ⚠️ agc_driver_depth_clear_hle 32.0 s
Unstable on main (1, these also failed in recent main runs on this machine; not counted against this PR)
agc_driver_pipeline_journal: failed in 9 of the last 10 main runs
Failing on main too (5, not counted against this PR)
agc_driver_image_gather_volume
agc_driver_image_table
agc_driver_native_depth_bda_clear
agc_driver_native_multisample_depth
agc_driver_submit_progress
Validation IDs already present on main (4 IDs in 490 tests)
VUID-VkDeviceCreateInfo-pNext-pNext (490 tests): agc_driver_address_draw_space_reuse, agc_driver_address_passes, agc_driver_alias_copy_label, agc_driver_alpha_to_coverage, agc_driver_array_layer_target, agc_driver_bc_block_copy, agc_driver_bda_anchor_reads, agc_driver_bda_span_reads, and 482 more
VUID-vkCmdCopyImage-srcImage-01548 (4 tests): agc_driver_depth_clear_hle, agc_driver_depth_storage_dispatch, agc_driver_depth_surface_from_storage, agc_driver_dispatch_move_depth
VUID-vkCmdCopyImage-srcImage-01551 (4 tests): agc_driver_depth_clear_hle, agc_driver_depth_storage_dispatch, agc_driver_depth_surface_from_storage, agc_driver_dispatch_move_depth
VUID-VkPipelineColorBlendStateCreateInfo-pAttachments-00605 (2 tests): agc_driver_prepared_exports, agc_driver_srgb8_color_target
Skipped (7)
agc_driver_copied_writer_label_order: skipped, the device reports a minStorageBufferOffsetAlignment of 4, so the dispatch binds its record at +0x1004 in place and nothing is written back; the test needs an alignment above 4
agc_driver_float16_unused_nan_payloads: skipped, the device has no native f16 conversions with RTE rounding and kept f16 denormals
agc_driver_gcn_display_present: skipped, no display: Vulkan support is either not configured in SDL or not available in current SDL video driver (offscreen) or platform
agc_driver_linear_target_direct_write_completion: skipped, the device does not keep host imports write-watched, so no completion stamp over the target is tracked
agc_driver_ngg_vertex_wave_reduction: skipped, s3 describes a 32-lane wave only on 32-lane subgroups, and the device has 64 lanes
agc_driver_scattered_runs: skipped, host imports are unavailable: /dev/udmabuf is not accessible
agc_driver_sparse_dma_buf_import: skipped, host imports are unavailable: /dev/udmabuf is not accessible
Reproduce
git fetch origin 2573684d24be67e6b0dde001c01a1d5a43fa24cb b611e634f7fc024f0c13e342d96de744448ef1d9
git checkout b611e634f7fc024f0c13e342d96de744448ef1d9 && git merge --no-ff 2573684d24be67e6b0dde001c01a1d5a43fa24cb
git submodule update --init --recursive
cmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=ON -DANYPS5_ENABLE_SPIRV_TOOLS=ON
cmake --build build && cmake --build build --target libs
VK_DRIVER_FILES=/nonexistent/icd.json ctest --test-dir build -E '^(agc|shader|recompiler|videoout|video_out|guest_video_out|vulkan)|gpu' --timeout 120 --parallel 12 --output-on-failure
ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1 VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation \
  ctest --test-dir build -R '^(agc|shader|recompiler|videoout|video_out|guest_video_out|vulkan)|gpu' --timeout 120 --parallel 16 --output-on-failure
# failures are then re-run alone: --timeout 360 --parallel 2; new validation IDs: the test alone, twice, --parallel 1

Automated build and test on a contributor's AMD machine; it does not replace upstream CI. A new comment is posted for each new push. Full logs.

@MarcZX10 MarcZX10 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed — no blocking findings

EVP_PKEY_bits follows LibreSSL 4.0.0 and its method-table offset (104) matches that revision's struct; the Windows job on this head was cancelled, and I did not build or run the new test.

What I ran

Head 2573684d24be67e6b0dde001c01a1d5a43fa24cb, PR base ba627802e2210187d417deb64c8f2fed8e33011f. I read the whole diff (6 files) and the head's Key.cpp, and compared them with LibreSSL 4.0.0 (p_lib.c and evp_local.h at ce488b78e0bd994780569df718596b9776ff681a). Environment: Debian 12, Linux x86_64. No AnyPS5 build was run.

python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 14409
gh pr diff 14409 -R boykopovar/AnyPS5
gh api 'repos/boykopovar/AnyPS5/contents/core/libs/prx/libSceLibreSsl3/src/Key.cpp?ref=2573684d24be67e6b0dde001c01a1d5a43fa24cb'
curl -sL https://raw.githubusercontent.com/libressl/openbsd/ce488b78e0bd994780569df718596b9776ff681a/src/lib/libcrypto/evp/p_lib.c
curl -sL https://raw.githubusercontent.com/libressl/openbsd/ce488b78e0bd994780569df718596b9776ff681a/src/lib/libcrypto/evp/evp_local.h
gh pr checks 14409 -R boykopovar/AnyPS5

Results

Check Result Note
Diff check, conventions, template passed precheck
Export and ABI audit passed precheck
Test-quality heuristic passed precheck
Merge and dependency preview passed precheck
Behavior against LibreSSL 4.0.0 passed null key, method or callback gives 0
Method-table offset 104 passed counted from the struct on LP64
Debt-entry export count passed 176 to 175 for the removed stub; named and NID-only split now 165 and 10, in line with the 116 names the entry records
Hosted Windows build not run job was cancelled on this head
Hosted conventions, labels, portability passed
AMD GPU CI comment on this head not run reports a passing build, no new failures
Local build and the new test not run
Precheck report for this head, unedited table
Check Status Why / command
build_and_compile not_run Builds are intentionally excluded from this fast, no-build check pass.
diff_check passed Command ran; see raw output below. Command: git diff --check ba627802e2210187d417deb64c8f2fed8e33011f...2573684d24be67e6b0dde001c01a1d5a43fa24cb
conventions_and_pr_template passed Command ran; see raw output below. Command: /marc/DeusMachina_0x1914/.venv/bin/python3 tools/check_conventions.py --base ba627802e2210187d417deb64c8f2fed8e33011f --head 2573684d24be67e6b0dde001c01a1d5a43fa24cb --title feat(libressl3): implement EVP_PKEY_bits --body /tmp/anyps5-pr-precheck/final/14409/pr-body.md
changed_export_abi_audit passed Command ran; see raw output below. Command: /marc/DeusMachina_0x1914/.venv/bin/python3 /marc/AnyPS5/tools/pr_abi_audit.py --base ba627802e2210187d417deb64c8f2fed8e33011f --head 2573684d24be67e6b0dde001c01a1d5a43fa24cb --json
python_syntax not_applicable No changed Python implementation files.
related_python_unit_tests not_applicable No changed Python tool module has a related tools/tests/test_.py suite.
python_test_registration not_applicable No changed Python test files need registration.
live_dependency_and_mergeability_check passed Command ran; see raw output below. Command: /marc/DeusMachina_0x1914/.venv/bin/python3 /marc/AnyPS5/tools/pr_stack_check.py 14409 --repo boykopovar/AnyPS5 --output-dir /tmp/anyps5-pr-precheck/final/14409/stack
build_dependent_cpp_tests not_run Changed C/C++ source or test files need exact-head binaries; this fast pass does not build.
test_quality_heuristics passed Command ran; see raw output below. Command: /marc/DeusMachina_0x1914/.venv/bin/python3 /marc/AnyPS5/tools/pr_test_quality.py --root /tmp/anyps5-pr-precheck/final/14409/head-2573684d24be-798d46cd --json core/libs/prx/libSceLibreSsl3/AdditionalExports.cpp core/libs/prx/libSceLibreSsl3/CMakeLists.txt core/libs/prx/libSceLibreSsl3/include/Api.hpp core/libs/prx/libSceLibreSsl3/src/Key.cpp core/libs/tests/GuestLibreSsl3KeyReference.cpp docs/dev/debt/libSceLibreSsl3.md
negative_controls not_applicable No changed tools/ Python test module is eligible for a base-source negative control.

Negative control

Not run. The new CheckBits test covers a null key, a key without a method, a neighbouring slot (offset 96) holding a failing callback, a removed callback and eight callback results; I read it but did not run it.

Findings

Blocking

None.

Non-blocking

None.

Sources

Not verified

  • Compilation and the new guest_libressl3_pkey_bits test on any platform. The AMD GPU CI comment is another contributor's report, not my run.
  • The hosted Windows build: the job was cancelled on this head (the author reports it hit the 45-minute limit).
  • The console module's LibreSSL revision and method layout; the debt entry already says they are unverified.

To get this to a good state

  1. Get the hosted Windows build to complete on 2573684d24be67e6b0dde001c01a1d5a43fa24cb; a maintainer has to rerun it.

@DonRyuzaki
DonRyuzaki force-pushed the feat/libressl3-pkey-bits branch from 2573684 to c8541e6 Compare November 5, 2026 11:40
@oneandonlydean oneandonlydean self-assigned this Nov 5, 2026
@github-actions github-actions Bot added the needs rebase Conflicts with main, rebase needed label Nov 6, 2026
@oneandonlydean

Copy link
Copy Markdown
Collaborator

Hi @DonRyuzaki,

Main has moved since this branch and the PR now conflicts in the LibreSsl3 debt count line. We have a merge of current main ready that keeps your implementation unchanged and recounts the pending exports (it also fixes the count noted in the last review), and it builds and passes the LibreSsl3 tests. We cannot push it because "Allow edits by maintainers" is off on this branch.

Could you either turn on "Allow edits by maintainers" so we can push the merge, or merge current main into the branch yourself? Either way this is ready to merge right after.

@github-actions github-actions Bot added needs rebase Conflicts with main, rebase needed and removed needs rebase Conflicts with main, rebase needed labels Nov 6, 2026
@oneandonlydean

Copy link
Copy Markdown
Collaborator

Hi @DonRyuzaki, thanks for merging main yourself; the conflict is gone and your EVP_PKEY_bits code is unchanged. The merge left the two count lines in docs/dev/debt/libSceLibreSsl3.md the wrong way round:

  1. Line 13 (libSceLibreSsl3 pending exports, Export.cpp) now says 45 and adds EVP_PKEY_bits to its exclusions. The EVP_PKEY_bits stub was in AdditionalExports.cpp, not in Export.cpp, and Export.cpp still has 46 throwing exports at 533a4fe645. Please restore main's line exactly as it was (46, without EVP_PKEY_bits in the list).
  2. Line 54 (Additional exports) still says "165 remaining callable exports: 155 named and 10 known only by NID". With EVP_PKEY_bits removed, AdditionalExports.cpp has 164 at this head (154 named and 10 by NID only), so this is the line that should drop by one. The inventory table row removal is already right.

If you'd rather we made this change for you, ticking "Allow edits by maintainers" on the PR lets us push it.

@DonRyuzaki

Copy link
Copy Markdown
Contributor Author

@oneandonlydean Thanks for catching the two count lines. I verified 46 throwing exports in Export.cpp and 164 in AdditionalExports.cpp (154 named, 10 NID-only), then corrected the corresponding debt entries in b85b547dcf8bd1695c540de83fd66e3e7add2b58. The EVP_PKEY_bits implementation is unchanged. This head includes upstream main through e509b292479c383dabd18bf5c323eff1afe9d2f3; the focused Windows Release build passed, both registered LibreSSL3 tests passed three consecutive runs, and conventions and whitespace checks passed. GitHub reports the PR mergeable; the new hosted Build is still running.

@github-actions github-actions Bot removed the needs rebase Conflicts with main, rebase needed label Nov 6, 2026
@oneandonlydean
oneandonlydean merged commit 5ca032c into boykopovar:main Nov 6, 2026
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants